package com.bby.common.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ToString
@Accessors(chain = true)
public class UserCustomInfo {
    @Id
    public String userId;
    public String username;
    public String email;
    public String signature;
    @JsonFormat( pattern ="yyyy-MM-dd", timezone ="GMT+8")
    public Date birthday;
    public String sex;

}
